function initCategorySelector(defaultValue, type) {
	defaultValue = defaultValue || [];
	$.getJSON("/super/news/findcategory?newsType=" + type + "&r=" + Math.random(), function(result) {
		if (result == null || result.newsCategoryList == null)
			return;
		var list = result.newsCategoryList;
		var html = "<select id=\"categoryId\" name=\"categoryId\">";
		html += "<option value=\"\">请选择分类</option>";
		for (var i = 0; i < list.length; i++) {
			if (defaultValue.contains(list[i].categoryId)) {
				html += "<option value=\"" + list[i].categoryId + "\" selected=\"true\">" + list[i].name + "</option>";
			} else {
				html += "<option value=\"" + list[i].categoryId + "\">" + list[i].name + "</option>";
			}
		}
		html += "</select>";
		$("#categorySelector").html(html);
	});
}